from django.contrib import admin
from .models import UserInfo,AppointInfo,SchemeInfo,packageInfo,PayLog,user_package,used_log,position_room,teacher_img,position_img

# Register your models here.
@admin.register(UserInfo)
class UserInfo(admin.ModelAdmin):
    list_display = ('user_id','open_id', 'avatar', 'nickname','tel','user_type','advantage','short_introduce',
        'detail_introduce','status','state','create_time','update_time')

@admin.register(AppointInfo)
class AppointInfo(admin.ModelAdmin):
    list_display = ('appoint_id','user_id', 'scheme_id', 'start_time','status', 'state','create_time','update_time')

@admin.register(SchemeInfo)
class SchemeInfo(admin.ModelAdmin):
    list_display = ('scheme_id','scheme_name', 'start_time', 'continue_time', 'position','max_people','user_id',
    	'introduce','scheme_type','status','state','create_time','update_time')

@admin.register(packageInfo)
class packageInfo(admin.ModelAdmin):
    list_display = ('package_id','package_name', 'league_amount', 'private_amount', 
    	'benner','introduce','price','status','state','valid_days','create_time','update_time')

@admin.register(PayLog)
class PayLog(admin.ModelAdmin):
    list_display = ('pay_id','user_id', 'package_id', 'amount', 'price',
    	'status','state','create_time','update_time')

@admin.register(user_package)
class user_package(admin.ModelAdmin):
    list_display = ('user_package_id','user_id', 'package_id', 'league_amount', 'private_amount',
    	'status','state','expire_time','create_time','update_time')
@admin.register(used_log)
class used_log(admin.ModelAdmin):
    list_display = ('used_id','user_id', 'user_package_id', 'scheme_id', 'scheme_type',
    	'status','state','create_time','update_time')

@admin.register(position_room)
class position_room(admin.ModelAdmin):
    list_display = ('position_room_id','position_room_name', 'introduce', 'create_time','update_time')

@admin.register(teacher_img)
class teacher_img(admin.ModelAdmin):
    list_display = ('teacher_img_id','user_id', 'img_url', 'create_time','update_time')

@admin.register(position_img)
class position_img(admin.ModelAdmin):
    list_display = ('position_img_id','position_room_id', 'img_url', 'create_time','update_time')
